﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DepartmentReport.aspx.cs"
    Inherits="HRWebSite.Sys.DepartmentReport" %>

<%@ Register Assembly="Whidsoft.WebControls.OrgChart" Namespace="Whidsoft.WebControls"
    TagPrefix="OC" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">   
    <script type="text/javascript">
        $(document).ready(function () {
            $("[href]").click(function (event) {
                var patrn = /javascript:void\((\d+)\)/;
                var res = patrn.exec($(event.target).attr('href'));
                if (res != null && res[1] > 0) {
                    window.top.$('#departName').val($(event.target).text());
                    window.top.$('#departID').val(res[1]);
                }
                window.top.$.closePopupLayer();
            });
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="popup">
        <div class="popup-header">
           选择部门
        </div>
        <div class="popup-body">
            <OC:OrgChart ID="OrgChart1" runat="server" ChartStyle="Horizontal" />
        </div>
    </div>
    </form>
</body>
</html>
